﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bepo.Model.Setup
{
    public interface ISetupTask
    {
        void Run();
        DateTime DevelopedOn { get; }
    }

    public abstract class DatabaseSetupTask : ISetupTask
    {
        public void Run()
        {
            Core.DatabaseDirect.ExecuteScript(Script);
        }

        public abstract DateTime DevelopedOn { get; }
        public abstract string Script { get; }
    }
}
